//
//  HPCheckBoxButton.h
//  ZZTong
//
//  Created by handpay on 13-5-13.
//  Copyright (c) 2013年 handpay. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HPCheckBoxButton;
@protocol HPCheckBoxButtonDelegate <NSObject>

- (void)checkBox:(HPCheckBoxButton*)box changed:(BOOL)checked;

@end

@interface HPCheckBoxButton : UIControl
{
    UILabel * label;
    UIImageView * icon;
    BOOL checked;
    UIImage * unCheckImage;
    UIImage * checkedImage;
    id<HPCheckBoxButtonDelegate> delegate;
}
@property(retain, nonatomic) UILabel * label;
@property(retain, nonatomic) UIImageView * icon;
@property(retain, nonatomic) UIImage * unCheckImage;
@property(retain, nonatomic) UIImage * checkedImage;
@property(retain, nonatomic) id<HPCheckBoxButtonDelegate> delegate;

-(BOOL)isChecked;
-(void)setChecked:(BOOL)flag;

- (id)initWithFrame:(CGRect)frame withNormal:(NSString *)unCheck withChecked:(NSString *)check;

@end
